<?php
	

		
		 function direct()
		{
			header('Location: referer.php');
		}
		
		 function write_log($str)
		{
				$myFile = "log.txt";
				$fp = fopen($myFile, 'w') or die("can't open file");
				fwrite($fp, date());
				fwrite($fp,"\n");
				fwrite($fp, $str);
				fwrite($fp,"\n");
				fclose($fp);
		}
		
		
	


?>